package com.bishe.demo.controller;

import com.bishe.demo.pojo.Store;
import com.bishe.demo.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
public class StoreController {

    @Autowired
    StoreService storeService;

    @RequestMapping("tiaozhuanSelectStore")
    public String tiaozhuanSelectStore(HttpSession httpSession){

        List<Store> list = storeService.selectStore();
        httpSession.setAttribute("store",list);

        return "selectStore";
    }
}
